﻿using System.Collections.Generic;
using EnetaMvc.Core.Domain.Events;
using EnetaMvc.Infrastructure;

namespace EnetaMvc.Core.Repositories
{
    public interface IEventRepository
    {
        PagedResult<Event> ListPublicEvents(int page, int pageSize);
        PagedResult<Event> ListEvents(int page, int pageSize);
        Event GetEventById(long Id);
        void SaveEvent(Event instance);
        void DeleteEvent(Event instance);
        IList<EventAttendee> GetUserAttendings(long userId);
        void SaveAttendee(EventAttendee attendee);
        void DeleteAttendee(EventAttendee attendee);
    }
}
